package com.mathlearning.auth.dto.problem;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProblemListResponse {
    private Long total;
    private List<ProblemItem> list;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ProblemItem {
        private Long id;
        private String title;
        private String difficulty;
        private BigDecimal acceptanceRate;
        private String status;  // null/attempted/solved
        private List<String> tags;
        private Integer submitCount;
        private Integer acceptedCount;
    }
}








